package com.review.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.review.project.mapper.ReviewNormMapper;
import com.review.project.domain.ReviewNorm;
import com.review.project.service.IReviewNormService;

/**
 * 评分指标Service业务层处理
 * 
 * @author evan
 * @date 2022-04-29
 */
@Service
public class ReviewNormServiceImpl implements IReviewNormService 
{
    @Autowired
    private ReviewNormMapper reviewNormMapper;

    /**
     * 查询评分指标
     * 
     * @param id 评分指标主键
     * @return 评分指标
     */
    @Override
    public ReviewNorm selectReviewNormById(Long id)
    {
        return reviewNormMapper.selectReviewNormById(id);
    }

    /**
     * 查询评分指标列表
     * 
     * @param reviewNorm 评分指标
     * @return 评分指标
     */
    @Override
    public List<ReviewNorm> selectReviewNormList(ReviewNorm reviewNorm)
    {
        return reviewNormMapper.selectReviewNormList(reviewNorm);
    }

    /**
     * 新增评分指标
     * 
     * @param reviewNorm 评分指标
     * @return 结果
     */
    @Override
    public int insertReviewNorm(ReviewNorm reviewNorm)
    {
        return reviewNormMapper.insertReviewNorm(reviewNorm);
    }

    /**
     * 修改评分指标
     * 
     * @param reviewNorm 评分指标
     * @return 结果
     */
    @Override
    public int updateReviewNorm(ReviewNorm reviewNorm)
    {
        return reviewNormMapper.updateReviewNorm(reviewNorm);
    }

    /**
     * 批量删除评分指标
     * 
     * @param ids 需要删除的评分指标主键
     * @return 结果
     */
    @Override
    public int deleteReviewNormByIds(Long[] ids)
    {
        return reviewNormMapper.deleteReviewNormByIds(ids);
    }

    /**
     * 删除评分指标信息
     * 
     * @param id 评分指标主键
     * @return 结果
     */
    @Override
    public int deleteReviewNormById(Long id)
    {
        return reviewNormMapper.deleteReviewNormById(id);
    }
}
